﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using HotelManagement._04.OBJECT;
using HotelManagement._03.DAO;

namespace HotelManagement._02.BUS
{
    class RoomInfoBUS
    {
        RoomInfoDAO m_RoomInfoDAO = new RoomInfoDAO();

        public DataTable ViewRoomType()
        {
            return m_RoomInfoDAO.ViewRoomType("pr_tblRoomType_SelectAll");
        }

        public bool UpdateRoomType(RoomInfo ip_RoomInfo)
        {
            return m_RoomInfoDAO.UpdateRoomType(ip_RoomInfo,"pr_tblRoomType_Update");

        }

        public bool InsertRoomType(RoomInfo ip_RoomInfo)
        {
            return m_RoomInfoDAO.InsertRoomType(ip_RoomInfo, "pr_tblRoomType_Insert");

        }
    }
}
